import { defineStore } from "pinia";

export const useCounterStore = defineStore('counter', {
  state: () => ({ count: 100 }),
  getters: {
    double: (state) => state.count * 2,
  },
  actions: {
    increment() {
      this.count++
    },
  },
  persist:true
})